import request from "@/utils/request";

export function getNestedTreeList(courseId) {
  return request({
    url: `/admin/vod/chapter/getNestedTreeList/${courseId}`,
    method: "get",
  });
}
export function save(data) {
  return request({
    url: `/admin/vod/chapter/save`,
    method: "post",
    data,
  });
}
export function getChapter(id) {
  return request({
    url: `/admin/vod/chapter/get/${id}`,
    method: "get",
  });
}
export function update(data) {
  return request({
    url: `/admin/vod/chapter/update`,
    method: "post",
    data,
  });
}
export function remove(id) {
  return request({
    url: `/admin/vod/chapter/remove/${id}`,
    method: "delete",
  });
}
